gtk+3.0.git
7 years agoUpdate Turkish translation
Emin Tufan Çetin [Fri, 20 Jul 2018 11:21:46 +0000 (11:21 +0000)]
Update Turkish translation

7 years agoMerge branch '628-text-view-width' into 'gtk-3-24'
Timm Bäder [Fri, 20 Jul 2018 06:24:14 +0000 (06:24 +0000)]
Merge branch '628-text-view-width' into 'gtk-3-24'

Resolve #628: "TextView: spaces acting as non-breaking whitespace if :left- or :right-margin is set"

See merge request GNOME/gtk!236

7 years agoEmoji chooser: Also check for hex boxes
Matthias Clasen [Thu, 19 Jul 2018 21:57:19 +0000 (17:57 -0400)]
Emoji chooser: Also check for hex boxes

We don't want to see those either.

7 years agomoji chooser: Try harder to avoid fallback
Matthias Clasen [Thu, 19 Jul 2018 21:50:54 +0000 (17:50 -0400)]
moji chooser: Try harder to avoid fallback

We don't want to see any fallback rendering.
The current check was still letting some fallback
combinations through.

Based on work by Julian Sparber.

7 years agoMerge branch 'gtk-3-24-defaultvalues-ignore-more' into 'gtk-3-24'
Matthias Clasen [Thu, 19 Jul 2018 20:23:29 +0000 (20:23 +0000)]
Merge branch 'gtk-3-24-defaultvalues-ignore-more' into 'gtk-3-24'

defaultvalue: Ignore more style properties that Adwaita overrides

See merge request GNOME/gtk!253

7 years agodefaultvalue: Ignore more style properties that Adwaita overrides
Iain Lane [Thu, 19 Jul 2018 14:45:48 +0000 (15:45 +0100)]
defaultvalue: Ignore more style properties that Adwaita overrides

These broke once we switched away from Raleigh

7 years agoNEWS: Remove an accidental tab
Daniel Boles [Wed, 18 Jul 2018 22:09:12 +0000 (23:09 +0100)]
NEWS: Remove an accidental tab

7 years agogesturestylus: Clarify a documentation comment
Timm Bäder [Tue, 17 Jul 2018 15:33:09 +0000 (17:33 +0200)]
gesturestylus: Clarify a documentation comment

Use the proper gtkdoc syntax for signals.

7 years ago3.23.1
Matthias Clasen [Wed, 18 Jul 2018 19:55:30 +0000 (15:55 -0400)]
3.23.1

7 years agoUpdate POTFILES.in
Piotr Drąg [Wed, 18 Jul 2018 15:00:11 +0000 (17:00 +0200)]
Update POTFILES.in

7 years agoFix up version annotations
Matthias Clasen [Wed, 18 Jul 2018 11:18:21 +0000 (07:18 -0400)]
Fix up version annotations

The new api here was introduced in 3.24.

7 years agoAdd new API to the docs
Matthias Clasen [Wed, 18 Jul 2018 11:12:41 +0000 (07:12 -0400)]
Add new API to the docs

7 years agoMerge branch 'wip/carlosg/controllers-backport' into 'gtk-3-24'
Matthias Clasen [Wed, 18 Jul 2018 00:23:37 +0000 (00:23 +0000)]
Merge branch 'wip/carlosg/controllers-backport' into 'gtk-3-24'

Wip/carlosg/controllers backport

See merge request GNOME/gtk!246

7 years agoUpdate Hungarian translation
Balázs Meskó [Tue, 17 Jul 2018 23:11:18 +0000 (23:11 +0000)]
Update Hungarian translation

7 years agosm scroll
Carlos Garnacho [Mon, 16 Jul 2018 13:44:35 +0000 (15:44 +0200)]
sm scroll

7 years agodemos: Add "Paint" demo
Carlos Garnacho [Fri, 2 Feb 2018 15:04:17 +0000 (16:04 +0100)]
demos: Add "Paint" demo

7 years agogtk: Add GtkGestureStylus
Carlos Garnacho [Thu, 1 Feb 2018 16:52:40 +0000 (17:52 +0100)]
gtk: Add GtkGestureStylus

This is a GtkGesture done to deal with stylus events from drawing tablets.
Those have a special number of characteristics that extend a regular
pointer, so it makes sense to wrap that.

7 years agogtkeventcontrollerkey: Add ::focus-in/out signals
Carlos Garnacho [Thu, 22 Mar 2018 17:32:19 +0000 (18:32 +0100)]
gtkeventcontrollerkey: Add ::focus-in/out signals

And handle GDK_FOCUS_CHANGE events in order to emit those.

7 years agogtkeventcontrollerkey: Add get_group() call
Carlos Garnacho [Thu, 22 Mar 2018 16:54:52 +0000 (17:54 +0100)]
gtkeventcontrollerkey: Add get_group() call

Callers can use this function on a key-pressed/released signal
to find out the key event group, useful in a few places.

7 years agoeventcontrollerkey: Add function to forward stuff elsewhere
Carlos Garnacho [Sun, 11 Mar 2018 12:38:19 +0000 (13:38 +0100)]
eventcontrollerkey: Add function to forward stuff elsewhere

7 years agogtk: Add GtkEventControllerKey
Carlos Garnacho [Mon, 11 Dec 2017 18:21:38 +0000 (19:21 +0100)]
gtk: Add GtkEventControllerKey

This event controller is meant to replace usage from key-press/release-event
handlers all through. Optionally it can be set a GtkIMContext, so interaction
is carried by the controller.

7 years agoAdd x/y to GtkEventControllerMotion::enter
Matthias Clasen [Tue, 2 Jan 2018 01:07:24 +0000 (20:07 -0500)]
Add x/y to GtkEventControllerMotion::enter

We have this information available in enter events,
and having it in the controller signal as well makes
porting easier.

Update existing users.

7 years agoAdd a simple motion eventcontroller
Matthias Clasen [Mon, 11 Dec 2017 23:29:33 +0000 (18:29 -0500)]
Add a simple motion eventcontroller

This can serve as a replacement for the legacy
event signals for enter/leave/motion notify.

7 years agoAvoid excess notification for GdkEventControllerScroll::flags
Matthias Clasen [Wed, 27 Dec 2017 01:04:07 +0000 (20:04 -0500)]
Avoid excess notification for GdkEventControllerScroll::flags

We have a test that checks this, and it is the right thing to do.

7 years agogtk: Remove CONSTRUCT_ONLY flag from GtkEventControllerScroll::flags
Carlos Garnacho [Tue, 31 Oct 2017 11:45:37 +0000 (12:45 +0100)]
gtk: Remove CONSTRUCT_ONLY flag from GtkEventControllerScroll::flags

There is a gtk_event_controller_scroll_set_flags() call that's meant
to be called after construction (eg. due to scrolledwindow relayouts
hiding/showing scrollbars). The property shouldn't be construct-only
for consistence.

7 years agogtkeventcontrollerscroll: Add some docs
Carlos Garnacho [Fri, 1 Dec 2017 23:18:07 +0000 (00:18 +0100)]
gtkeventcontrollerscroll: Add some docs

7 years agoeventcontrollerscroll: Emit ::scroll for -1/+1 discrete steps
Timm Bäder [Wed, 11 Oct 2017 06:06:33 +0000 (08:06 +0200)]
eventcontrollerscroll: Emit ::scroll for -1/+1 discrete steps

The > 1 meant it only emits the signal for -2/+2 steps.

7 years agogtk: Add GtkEventControllerScroll
Carlos Garnacho [Fri, 15 Sep 2017 11:22:57 +0000 (13:22 +0200)]
gtk: Add GtkEventControllerScroll

This is a GtkEventController implementation to handle mouse
scrolling. It handles both smooth and discrete events and
offers a way for callers to tell their preference too, so
smooth events shall be accumulated and coalesced on request.

On capable devices, it can also emit ::scroll-begin and
::scroll-end enclosing all ::scroll events for a scroll
operation.

It also has builtin kinetic scrolling capabilities, reporting
the initial velocity for both axes after ::scroll-end if
requested.

7 years agowindow: Update opaque region if background-color changes
Benjamin Otte [Fri, 13 Jul 2018 12:52:43 +0000 (14:52 +0200)]
window: Update opaque region if background-color changes

The opaque region is only set when the background color is opaque. So
we need to do something about it when the background color changes.

However, in the case where a size allocation is going to happen, we
already do this update in size_allocate(), so in that case avoid doing
it twice.

7 years agoUpdate Brazilian Portuguese translation
Bruno Lopes da Silva [Tue, 10 Jul 2018 13:02:08 +0000 (13:02 +0000)]
Update Brazilian Portuguese translation

7 years agoMerge branch 'expander-size-3' into 'gtk-3-24'
Jakub Steiner [Mon, 9 Jul 2018 15:27:51 +0000 (15:27 +0000)]
Merge branch 'expander-size-3' into 'gtk-3-24'

HighContrast: Restore expander size

See merge request GNOME/gtk!210

7 years agotext-view: Do not double-allocate borders
Peter Bloomfield [Sun, 8 Jul 2018 21:24:07 +0000 (17:24 -0400)]
text-view: Do not double-allocate borders

Reverts part of Commit 25b67af3

The 'width' part of the commit is the cause of #628: requisition->width
is first set to priv->layout->width, which already includes
priv->left_border + priv->right_border. It's a bit labyrinthine, but
essentially:

*  layout->width is set in update_layout_size() (gtktextlayout.c line 992)
   as the maximum line width, and
*  the line width is set to display->width in gtk_text_layout_real_wrap()
   (gtktextlayout.c line 1183), and
*  display->width is set to text_pixel_width + h_margin + h_padding in
   gtk_text_layout_get_line_display() (gtktextlayout.c line 2584), and
*  h_margin + h_padding is the same as priv->left_border +
   priv->right_border.

Adding it again leads to an increase in the size-request, which
results in wider lines; rinse and repeat.

7 years agoUpdate German translation
Mario Blättermann [Sat, 7 Jul 2018 19:48:26 +0000 (19:48 +0000)]
Update German translation

7 years agoHighContrast: Restore expander size
Samuel Thibault [Thu, 21 Jun 2018 13:58:39 +0000 (15:58 +0200)]
HighContrast: Restore expander size

Expanders used to be 16px high. With the move from the gtk2 rendering
to gtk3 rendering they shrunk to 12px, making them hard to see, because
it's now the icon which is 16px high and the icon contains transparent
borders.

This makes the HighContrast theme use 24px icons instead, to restore
16px expanders. This may expander some containers a bit.

Closes #1046

7 years agoMerge branch 'fix_wayland_csd_announce' into 'gtk-3-24'
Jonas Ådahl [Tue, 3 Jul 2018 10:14:57 +0000 (10:14 +0000)]
Merge branch 'fix_wayland_csd_announce' into 'gtk-3-24'

Fix gdk_wayland_window_announce_csd

See merge request GNOME/gtk!221

7 years agoAdwaita: Drop some unneeded overrides
Daniel Boles [Mon, 2 Jul 2018 20:45:06 +0000 (21:45 +0100)]
Adwaita: Drop some unneeded overrides

The pseudoclasses work fine on the subnodes without having to also apply
`parent:class subnode`.

7 years agoModelButton: Add Since annotation on new prop
Daniel Boles [Mon, 2 Jul 2018 19:31:45 +0000 (20:31 +0100)]
ModelButton: Add Since annotation on new prop

7 years agoScrolledWindow: a couple of spelling/grammar fixes
Daniel Boles [Mon, 2 Jul 2018 19:11:12 +0000 (20:11 +0100)]
ScrolledWindow: a couple of spelling/grammar fixes

(A) Put a space in "scrolled window" like the other doc comments
(B) Say "i.e." rather than "ie."
(C) Fix grammar from "makes [...] exactly reaches" to "exactly reach"

7 years agoScrolledWindow: Fix/improve doc of key bindings
Daniel Boles [Mon, 2 Jul 2018 19:09:37 +0000 (20:09 +0100)]
ScrolledWindow: Fix/improve doc of key bindings

Saying 'key + modifiers' is really weird, so reverse that, and explain
why there are 2 cited and what the difference between them is.

7 years agoScrolledWindow: Add missing apostrophes
Daniel Boles [Mon, 2 Jul 2018 19:07:23 +0000 (20:07 +0100)]
ScrolledWindow: Add missing apostrophes

7 years agoMerge branch 'wip/gtk324.win.egl' into 'gtk-3-24'
Matthias Clasen [Mon, 2 Jul 2018 17:18:26 +0000 (17:18 +0000)]
Merge branch 'wip/gtk324.win.egl' into 'gtk-3-24'

Add an EGL renderer for GDK-Win32 for GTK+-3.24 (was: merge request !126)

See merge request GNOME/gtk!191

7 years agoMerge branch 'wip/aplazas/modelbutton-markup' into 'gtk-3-24'
Matthias Clasen [Mon, 2 Jul 2018 17:16:59 +0000 (17:16 +0000)]
Merge branch 'wip/aplazas/modelbutton-markup' into 'gtk-3-24'

ModelButton: Add 'use-markup' property

See merge request GNOME/gtk!219

7 years agoPlacesSidebar: Fix warning about signal parameters
Daniel Boles [Sun, 1 Jul 2018 15:08:06 +0000 (16:08 +0100)]
PlacesSidebar: Fix warning about signal parameters

@open_flags was not documented, and so:

jhbuild/checkout/gnome/gtk+-3/gtk/gtkplacessidebar.c:4743: Warning: Gtk:
incorrect number of parameters in comment block, parameter annotations
will be ignored.

7 years agoModelButton: Add 'use-markup' property
Adrien Plazas [Mon, 23 Apr 2018 09:06:17 +0000 (11:06 +0200)]
ModelButton: Add 'use-markup' property

Binds this property to the button's label, allowing a model button to
have text with markup.

This will be convenient for buttons like 'Online Accounts <sup>↗</sup>'.

7 years agothemes: Remove Raleigh
Daniel Boles [Fri, 29 Jun 2018 18:02:15 +0000 (19:02 +0100)]
themes: Remove Raleigh

It has been extremely broken since the move to CSS gadgets/nodes, so
clearly no one is depending on it; nor does anyone seem to want to
resurrect it, and writing a Raleigh-inspired theme from scratch would be
faster if they did. So let's drop the dead weight from the build and lib

Now that we don't have Raleigh, the defaultvalue test has to be changed
to set Adwaita before checking the default values of style properties -
some of which Adwaita overrides in its CSS, meaning those would fail.
Not that it passed before anyway! But it does now after my other commit.

Note that I leave the last reference in gtk-zip.sh.in alone since that
hasn't been touched in 8 years and probably has plenty other problems...

Close https://gitlab.gnome.org/GNOME/gtk/issues/1187

7 years agodefaultvalue: Fix some very broken indentation
Daniel Boles [Fri, 29 Jun 2018 18:57:06 +0000 (19:57 +0100)]
defaultvalue: Fix some very broken indentation

and while here, use the more typical : to separate the type and property

7 years agodefaultvalue: Ignore property to actually pass
Daniel Boles [Fri, 29 Jun 2018 17:53:54 +0000 (18:53 +0100)]
defaultvalue: Ignore property to actually pass

GtkFontChooserWidget:tweak-action gets set in init(), so we have to skip
testing that it is the default NULL for a GObject, or the test fails.

7 years agodefaultvalue: Stop warnings via new g_object_ref()
Daniel Boles [Fri, 29 Jun 2018 17:38:15 +0000 (18:38 +0100)]
defaultvalue: Stop warnings via new g_object_ref()

Now that it can propagate the type, we must explicitly cast to GObject*
to assign it, otherwise gcc shouts.

7 years agodefaultvalue test: Remove obsolete properties
Daniel Boles [Fri, 29 Jun 2018 17:36:14 +0000 (18:36 +0100)]
defaultvalue test: Remove obsolete properties

7 years agoMerge branch 'wip/cursor-output-scale-changes-3-24' into 'gtk-3-24'
Matthias Clasen [Fri, 29 Jun 2018 14:30:51 +0000 (14:30 +0000)]
Merge branch 'wip/cursor-output-scale-changes-3-24' into 'gtk-3-24'

wayland: Update cursor surface scale when output scale changes

See merge request GNOME/gtk!223

7 years agowayland: Use correct enums in server_decoration_request_mode
David Edmundson [Thu, 28 Jun 2018 17:41:22 +0000 (18:41 +0100)]
wayland: Use correct enums in server_decoration_request_mode

The enum is duplicated in the spec for the manager and the decoration
object. We should be using the right ones. In practice they have the
same value, so this bug didn't cause any issues.

7 years agowayland: Respond to server_decoration.mode events
David Edmundson [Thu, 28 Jun 2018 17:09:47 +0000 (18:09 +0100)]
wayland: Respond to server_decoration.mode events

7 years agowayland: Fix memory leak in server decoration object
David Edmundson [Thu, 28 Jun 2018 10:13:33 +0000 (11:13 +0100)]
wayland: Fix memory leak in server decoration object

The server decoration object becomes invaid when the wl_surface is
deleted. We should tidy it up then.

7 years agowayland: Reset server decoration interface on window mapping
David Edmundson [Thu, 28 Jun 2018 10:12:59 +0000 (11:12 +0100)]
wayland: Reset server decoration interface on window mapping

The wl_surface is destroyed and recreated when the window is
mapped/unmapped. As we have a new wl_surface we need to create a new
server_decoration object for that surface.

7 years agowayland: Explicitly request mode for both CSD and SSD modes
David Edmundson [Mon, 25 Jun 2018 16:06:33 +0000 (17:06 +0100)]
wayland: Explicitly request mode for both CSD and SSD modes

According to the spec compositors were to assume surfaces are CSD until
told otherwise. This means we need to send
org_kde_kwin_server_decoration_request_mode in both cases.

This fixes libreoffice under kwin, which would remove it's own headers
as per the manager's request but not inform kwin leaving it in the even
more broken state of having none.

7 years agowayland: Update cursor surface scale when output scale changes
Jonas Ådahl [Thu, 28 Jun 2018 09:41:09 +0000 (11:41 +0200)]
wayland: Update cursor surface scale when output scale changes

Cursor surfaces didn't listen for output scale changes, meaning they
didn't adapt their scale when an output changed scale, which could
happen for example when changing the monitor scale via Settings.

7 years agoGDK/Win32: Cleanup and further fix OpenGL/ES glitches
Chun-wei Fan [Wed, 20 Jun 2018 09:27:30 +0000 (17:27 +0800)]
GDK/Win32: Cleanup and further fix OpenGL/ES glitches

We also need to invalidate the OpenGL/ES window when we resize the
window via a mouse drag operation, so that we don't get glitches in such
situations, because they are not covered in GdkWindow's
impl_class->move_resize().

Make sure that we only force the invalidation when necessary (as it is
expensive), and clean up the gdkevents-win32.c code so that we include
gdkglcontext-win32.h in the right place instead of using an extern, as
we need to invalidate the window accordingly.

7 years agoGDK-Win32: Fix glitches when using EGL/ANGLE
Chun-wei Fan [Tue, 22 May 2018 10:05:35 +0000 (18:05 +0800)]
GDK-Win32: Fix glitches when using EGL/ANGLE

We need to force redraws of the whole window when we are using EGL/ANGLE
during maximize, restore and Aerosnap ops so that we do not get glitches
in the resulting window.

7 years agoAdd a EGL renderer (via ANGLE) for Windows
Chun-wei Fan [Fri, 27 Apr 2018 15:30:32 +0000 (23:30 +0800)]
Add a EGL renderer (via ANGLE) for Windows

This is for adding a EGL-based renderer which is done via the ANGLE
project, which translate EGL calls to Direct3D 9/11.  This is done as a
possible solution to issue #105, especially for cases where the needed
full GL extensions to map OpenGL to Direc3D is unavailable or
unreliable, or when the OpenGL implementation from the graphics drivers
are problematic.

To enable this, do the following:
-Build ANGLE and ensure the ANGLE libEGL.dll and libGLESv2.dll are
 available.  A sufficiently-recent ANGLE is needed for things to
 work correctly--note that the copy of ANGLE that is included in
 qtbase-5.10.1 is sufficient.  ANGLE is licensed under a BSD 3-clause
 license.  Note also that Visual Studio 2013 or later is required to
 build ANGLE from QT-5.10.1, but the 2013-built ANGLE DLLs can work
 without without problems for GTK+ that is built with Visual Studio
 2008 or later.
-Build libepoxy on Windows with EGL support enabled.
-Define GDK_WIN32_ENABLE_EGL when building gdk-win32.lib when building
 with Visual Studio, or pass in --enable-win32-gles during configure
 when building with MinGW/mingw-w64.
-Prior to running GTK+ programs, the GDK_GL envvar needs to contain
 gles.

Known issues:
-Only OpenGL ES 3 is supported, ANGLE's ES 2 does not support the needed
 extensions, notably GL_OES_vertex_array_object, but its ES 3 support is
 sufficient.
-There is no autodetection or fallback mechanism to enable using
 EGL/Angle automatically yet.  There is no plans to do this in this
 commit.

Thanks to LRN for pointing out that we should #include
"win32/gdkwin32.h" instead of #include "gdkwin32.h" for gdkgl.c.  LRN
also did the autotools portion of this patch.

Further notes about the autotools --enable-win32-gles option, fom LRN:

This adds --enable-win32-gles option, which enables the
code for GLES renderer.  This commit also adds tests for WGL and
EGL in epoxy.  The absence of WGL is highly unlikely (it's enabled
by default), but checking for EGL when GLES is enabled is necessary,
as EGL is disabled in Windows builds of epoxy by default.

7 years agoMerge branch '324.win32.build' into 'gtk-3-24'
Emmanuele Bassi [Wed, 27 Jun 2018 18:26:02 +0000 (18:26 +0000)]
Merge branch '324.win32.build' into 'gtk-3-24'

GTK+: Fix dist and build on Windows

See merge request GNOME/gtk!207

7 years agodemos/gtk-demo/gtkfishbowl.c: Include gtk/fallback-c89.c
Chun-wei Fan [Wed, 20 Jun 2018 10:21:05 +0000 (18:21 +0800)]
demos/gtk-demo/gtkfishbowl.c: Include gtk/fallback-c89.c

...in place of math.h, as we are using round(), which is possibly not
provided by the compiler since we don't require a C99 compiler in
GTK+-3.x and gtk/fallback-c89.c does include math.h anyways.

7 years agogtk/: Fix build without PangoFT2 and HarfBuzz
Chun-wei Fan [Wed, 20 Jun 2018 10:13:44 +0000 (18:13 +0800)]
gtk/: Fix build without PangoFT2 and HarfBuzz

On Windows HarfBuzz and PangoFT2 are optional, so we need to ensure that
we only build the bits that require HarfBuzz and PangoFT2 when needed.
We may need to see later whether we can get the needed functionality in
gtkfontchooserwidget.c with the Windows APIs without the need of
HarfBuzz nor PangoFT2 (and starting programs on Windows using FontConfig
is very slow).

7 years agogtk/Makefile.am: Dist the newly-added private headers
Chun-wei Fan [Wed, 20 Jun 2018 10:10:33 +0000 (18:10 +0800)]
gtk/Makefile.am: Dist the newly-added private headers

We need to dist language-names.h and script-names.h so that we won't
be missing headers in a dist tarball.

7 years agoprogressbar: Never stop never stopping
Benjamin Otte [Tue, 26 Jun 2018 02:13:24 +0000 (04:13 +0200)]
progressbar: Never stop never stopping

Reinstate code that was accidentally deleted during the port to
GtkProgressTracker in commit d57ebe2de7d.

Without that code, pulsing the progressbar will stop doing anything
after 3 iterations.

7 years agoDon't forget to dist open-type-layout.h
Matthias Clasen [Mon, 25 Jun 2018 22:51:45 +0000 (18:51 -0400)]
Don't forget to dist open-type-layout.h

This is a private header, but it still needs to end up in the tarball.

7 years agoMerge branch 'issue1170' into 'gtk-3-24'
Matthias Clasen [Mon, 25 Jun 2018 21:13:24 +0000 (21:13 +0000)]
Merge branch 'issue1170' into 'gtk-3-24'

modules: fix gtk-2.0 paths to gtk-3.0

See merge request GNOME/gtk!211

7 years agoMerge branch 'mcatanzaro/#1174' into 'gtk-3-24'
Matthias Clasen [Mon, 25 Jun 2018 18:57:52 +0000 (18:57 +0000)]
Merge branch 'mcatanzaro/#1174' into 'gtk-3-24'

imwayland: Fix a small leak

See merge request GNOME/gtk!218

7 years agoimwayland: Fix a small leak
Michael Catanzaro [Sun, 24 Jun 2018 20:49:46 +0000 (15:49 -0500)]
imwayland: Fix a small leak

If the parent get_preedit_string implementation returns a nonnull
zero-length string, then we ignore it, which is almost fine. We have to
free it, though.

Fixes #1174

7 years agoMerge branch 'wip/chergert/no-compressed-ui' into 'gtk-3-24'
Timm Bäder [Sun, 24 Jun 2018 06:26:13 +0000 (06:26 +0000)]
Merge branch 'wip/chergert/no-compressed-ui' into 'gtk-3-24'

build: use xml-stripblanks with .ui resources

See merge request GNOME/gtk!216

7 years agogtk: also recolor circle and ellipse in symbolic SVG icons.
Jehan [Fri, 22 Jun 2018 22:16:39 +0000 (00:16 +0200)]
gtk: also recolor circle and ellipse in symbolic SVG icons.

7 years agobuild: use xml-stripblanks with .ui resources
Christian Hergert [Sun, 12 Nov 2017 23:18:21 +0000 (15:18 -0800)]
build: use xml-stripblanks with .ui resources

This adds a preprocess step to the .ui files to strip them of blank
characters. It also removes the compressed='true' from the .ui files since
that involves creating lots of decompressor objects when creating widgets.
Doing so has runtime overhead and slows down the creation of initial
application windows.

The .ui files are left compressed for the Inspector, since that is not in
the core performance path of application startup.

7 years agomodules: fix gtk-2.0 paths to gtk-3.0
Roddy Shuler [Fri, 22 Jun 2018 12:53:43 +0000 (13:53 +0100)]
modules: fix gtk-2.0 paths to gtk-3.0

Both print backends and configuration files for multipress are being
installed in the wrong directory, so let's fix that.

7 years agoUpdate NEWS
Matthias Clasen [Thu, 21 Jun 2018 22:56:00 +0000 (18:56 -0400)]
Update NEWS

7 years agoEmojiCompletion: Avoid un/signed compare warnings
Daniel Boles [Wed, 20 Jun 2018 19:36:19 +0000 (20:36 +0100)]
EmojiCompletion: Avoid un/signed compare warnings

(A) Use gsize to match the result of g_variant_n_children
(B) Use guint for n_matches, like the struct (and all other n_matches)

7 years agoEmojiCompletion: Use Box:spacing instead of CSS
Daniel Boles [Wed, 20 Jun 2018 19:33:45 +0000 (20:33 +0100)]
EmojiCompletion: Use Box:spacing instead of CSS

master uses CSS border-spacing, but that is not available in GTK+ 3.

Close https://gitlab.gnome.org/GNOME/gtk/issues/1166

7 years agoAdwaita: Don't use a property that GTK+ 3 lacks
Daniel Boles [Wed, 20 Jun 2018 19:24:19 +0000 (20:24 +0100)]
Adwaita: Don't use a property that GTK+ 3 lacks

border-spacing was not backported (yet?). If it won't be, then a
suitable replacement is needed. Until then, avoid the runtime error that
can result from using a nonexistent property in our theme.

https://gitlab.gnome.org/GNOME/gtk/issues/1166

7 years agoAdwaita: Regenerate CSS for emoji completion popup
Daniel Boles [Wed, 20 Jun 2018 18:37:45 +0000 (19:37 +0100)]
Adwaita: Regenerate CSS for emoji completion popup

Commit 65bb238a3f0075d88f6dd82e76de1e86946db001 forgot this bit.

7 years agoHC: Avoid excessive selectors from prev commit
Daniel Boles [Wed, 20 Jun 2018 18:24:39 +0000 (19:24 +0100)]
HC: Avoid excessive selectors from prev commit

The new rule does not need to affect all those other pseudoclasses. I
just put it in the wrong scope.

7 years agogtk3-sections: Add GtkInfoBar.[gs]et-revealed()
Daniel Boles [Wed, 20 Jun 2018 18:09:38 +0000 (19:09 +0100)]
gtk3-sections: Add GtkInfoBar.[gs]et-revealed()

https://gitlab.gnome.org/GNOME/gtk/issues/1165

7 years agoInfoBar: Fix wrong type in copy-pasted param doc
Daniel Boles [Wed, 20 Jun 2018 18:09:23 +0000 (19:09 +0100)]
InfoBar: Fix wrong type in copy-pasted param doc

https://gitlab.gnome.org/GNOME/gtk/issues/1165

7 years agoHC: Avoid same BG/FG colors in flat treeview entry
Daniel Boles [Wed, 20 Jun 2018 17:32:49 +0000 (18:32 +0100)]
HC: Avoid same BG/FG colors in flat treeview entry

Selected rows in tree views in HighContrast have a background colour the
same or nearly as the normal text colour, so we cannot let entries in
such rows have transparent backgrounds, or the text inside the entry
becomes nearly or totally impossible to see.

Dodge this by giving entry.flat inside treeview and with :focus the
$base_color, which is different from the text & so lets that be seen.

https://gitlab.gnome.org/GNOME/gtk/merge_requests/125

7 years agox11: Add necessary NULL check
Benjamin Otte [Sat, 16 Dec 2017 01:24:12 +0000 (02:24 +0100)]
x11: Add necessary NULL check

(Backported from master 3438dcdd4e0)

7 years agoMerge branch 'wip/dboles/searchenginetracker-plug-3' into 'gtk-3-24'
Matthias Clasen [Wed, 20 Jun 2018 16:13:04 +0000 (16:13 +0000)]
Merge branch 'wip/dboles/searchenginetracker-plug-3' into 'gtk-3-24'

searchenginetracker: Don't leak the hits' GFiles

See merge request GNOME/gtk!206

7 years agosearchenginetracker: Don't leak the hits' GFiles
Daniel Boles [Wed, 20 Jun 2018 08:54:16 +0000 (09:54 +0100)]
searchenginetracker: Don't leak the hits' GFiles

7 years agoMerge branch '1160-crash-clearing-gtkentry-icon-tooltip' into 'gtk-3-24'
Matthias Clasen [Tue, 19 Jun 2018 19:40:42 +0000 (19:40 +0000)]
Merge branch '1160-crash-clearing-gtkentry-icon-tooltip' into 'gtk-3-24'

Resolve "Crash clearing GtkEntry icon tooltip"

See merge request GNOME/gtk!204

7 years agoa11y/entry: Fix copy-pasteo re 2ndary icon tooltip
Daniel Boles [Tue, 19 Jun 2018 17:30:34 +0000 (18:30 +0100)]
a11y/entry: Fix copy-pasteo re 2ndary icon tooltip

The else case was wrongly resetting the accessible description on the
primary icon, which might not exist and can therefore cause a crash.

https://gitlab.gnome.org/GNOME/gtk/issues/1160

7 years agoMerge branch 'patch-1' into 'gtk-3-24'
Matthias Clasen [Tue, 19 Jun 2018 15:43:40 +0000 (15:43 +0000)]
Merge branch 'patch-1' into 'gtk-3-24'

wayland: Use shm_open(SHM_ANON) on FreeBSD

See merge request GNOME/gtk!203

7 years agowayland: Use shm_open(SHM_ANON) on FreeBSD
myfreeweb [Tue, 19 Jun 2018 14:49:18 +0000 (14:49 +0000)]
wayland: Use shm_open(SHM_ANON) on FreeBSD

This functionality is similar to Linux's memfd. It creates anonymous shared memory without touching the filesystem, which allows it to work in Capsicum capability mode (sandbox).

7 years agox11: Always set None pixmap for no background
Benjamin Otte [Mon, 18 Jun 2018 14:17:44 +0000 (16:17 +0200)]
x11: Always set None pixmap for no background

None means no background, so it's always the correct thing to use and
ParentRelative is always wrong.

Closes: https://gitlab.gnome.org/GNOME/gtk/issues/1134
7 years agogtk/gtkemojicompletion.c: Fix build on C89 and non-GCC
Chun-wei Fan [Tue, 19 Jun 2018 10:30:22 +0000 (18:30 +0800)]
gtk/gtkemojicompletion.c: Fix build on C89 and non-GCC

Declare variables at the top of the clock, and ensure that we don't try
to use g_autoptr(), which is a GCCism.

7 years agogtk/language-names.c: Fix build on non-GCC/CLang
Chun-wei Fan [Wed, 28 Mar 2018 03:59:11 +0000 (11:59 +0800)]
gtk/language-names.c: Fix build on non-GCC/CLang

Remove g_auto*() usage from these sources and use the traditional
g_free(), as g_auto*() are GCCisms (or CLangisms).

Also, don't include unistd.h unconditionally and stop including
langinfo.h and dirent.h, since they seem to be unused.

Partially cherry-picked from a4c0395343c3969c330cb37efa45ae952ba74b86

https://bugzilla.gnome.org/show_bug.cgi?id=773299

7 years agoMerge branch 'window-activate-grab-3-again-24' into 'gtk-3-24'
Matthias Clasen [Mon, 18 Jun 2018 11:24:36 +0000 (11:24 +0000)]
Merge branch 'window-activate-grab-3-again-24' into 'gtk-3-24'

gdk: activate surface on keyboard grabs

See merge request GNOME/gtk!176

7 years agogdk: activate surface on keyboard grabs
Samuel Thibault [Fri, 1 Jun 2018 14:43:01 +0000 (16:43 +0200)]
gdk: activate surface on keyboard grabs

In 01455399e83a ("gdk: do not deactivate surface on keyboard grabs"), we
made gdk avoid deactivating surfaces when another application takes a
keyboard grab, by using has_focus_window instead of has_focus. That however
broke activating surfaces when the gdk application acquired a grab itself,
in which case has_focus_window is false but has_focus is true.

We thus actually need to use both: surfaces should be activated either
because we have normal keyboard focus, or because we grabbed the keyboard.

This also renames HAS_FOCUS to APPEARS_FOCUSED to better reflect its
role.

Fixes #85

(cherry picked from commit 3287ac96e02ff236d74db10164c5b0c1e7b2b0bf)

7 years agosearch-bar: Fix link to search-bar example
Mohammed Sadiq [Sat, 16 Jun 2018 05:05:55 +0000 (10:35 +0530)]
search-bar: Fix link to search-bar example

The master branch is now Gtk4. We should be linking to
stable branch here.

7 years agogtk: fix wheel scrolling for very small adjustment page_size
Michael Natterer [Mon, 11 Jun 2018 16:36:50 +0000 (18:36 +0200)]
gtk: fix wheel scrolling for very small adjustment page_size

For very small page sizes of < 1.0, the effect of pow() is the
opposite of what's intended and the scroll steps become unusably
large, make sure we never get a scroll_unit larger than page_size /
2.0, which used to be the default before the pow() magic was
introduced.

7 years agogdkseatdefault: Don't hide GdkWindow on grab failure
Victor Toso [Thu, 24 May 2018 13:42:47 +0000 (15:42 +0200)]
gdkseatdefault: Don't hide GdkWindow on grab failure

Application is not expecting that.

Bug found due gdk_seat_grab() failure on Lock Screen. When user
Unlock the screen, the application is visible but does not receive
enter-event any more on X11/GNOME.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1485968
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1571422

Signed-off-by: Victor Toso <victortoso@redhat.com>
Signed-off-by: Carlos Garnacho <mrgarnacho@gmail.com>
7 years agoUpdate Polish translation
Piotr Drąg [Sun, 10 Jun 2018 13:31:47 +0000 (15:31 +0200)]
Update Polish translation

7 years agoMerge branch 'lrn/gks_vk_menu' into 'gtk-3-24'
Matthias Clasen [Fri, 8 Jun 2018 10:54:42 +0000 (10:54 +0000)]
Merge branch 'lrn/gks_vk_menu' into 'gtk-3-24'

GDK W32: Don't forget to check VK_MENU and set MK_ALT

See merge request GNOME/gtk!181

7 years agoMerge branch 'wip/tchaik/fontconfig-timestamp' into 'gtk-3-24'
Matthias Clasen [Thu, 7 Jun 2018 19:52:02 +0000 (19:52 +0000)]
Merge branch 'wip/tchaik/fontconfig-timestamp' into 'gtk-3-24'

wayland: Implement 'gtk-fontconfig-timestamp' & 'gtk-modules'

See merge request GNOME/gtk!157

7 years agoMerge branch 'gtk-3-24' into 'gtk-3-24'
Matthias Clasen [Thu, 7 Jun 2018 18:30:48 +0000 (18:30 +0000)]
Merge branch 'gtk-3-24' into 'gtk-3-24'

Fix reference to user styles in gtkstyleprovider.h

See merge request GNOME/gtk!183